<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>驴友网-资讯管理</title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong class="icon-reorder"> 资讯列表</strong>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th width="5%">ID</th>
				<th width="15%">标题</th>
				<th width="10%">推送时间</th>
				<th width="10%">操作</th>
			</tr>


			<c:forEach varStatus="status" var="notification"
				items="${sessionScope.notification }">
				<tr>
					<td>${status.count }</td>
					<td>${notification.title }</td>
					<td>${notification.updatetime}</td>
					<td><div class="button-group">
							<a class="button border-main" href="<c:url value='/showNotificationServlet'/>?ID=${notification.notificationID}"
								><span
								class="icon-search-plus"></span> 查看</a> <a class="button border-red"
								href="<c:url value='/deleteNotificationServlet'/>?ID=${notification.notificationID}" onclick="return del()"><span
								class="icon-trash-o"></span> 删除</a>
						</div></td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="9"><div class="pagelist">
						<a href="">上一页</a> <span class="current">1</span><a href="">2</a><a
							href="">3</a><a href="">下一页</a><a href="">尾页</a>
					</div></td>
			</tr>
		</table>
	</div>
	<script type="text/javascript">
	
		function del(id, mid) {
			if (confirm("您确定要删除吗?")) {
	            
	            return true;
			}else{
			    
			    return false;
			}
		}
	</script>

</body>
</html>